/**
 * author: wancheng
 * date: 2018/08/1
 * des: 休假申请
 *
 */
/**
 * 休假申请列表的set
 */
export const listSetting = [{
  field: 'id',
  title: 'ID',
  type: 'text',
  isHiden: true,
  hideEdit: true
},
{
  field: 'applyName',
  title: '申请名称',
  type: 'text',
  searchable: true
},
{
  field: 'employeeName',
  title: '申请人',
  type: 'text'
},
{
  field: 'vacationStartDate',
  title: '开始日期',
  type: 'text'
},
{
  field: 'vacationEndDate',
  title: '结束日期',
  type: 'text'
}, {
  field: 'vacationDays',
  title: '请假天数',
  type: 'text'
},
{
  field: 'vacationType',
  title: '请假类型',
  type: 'selected',
  isParams: true, // 默认为false，当isParams 为true 时，下拉数据为参数类型，
  paramsId: 'VACATION',
  searchable: true
},
{
  field: 'statusName',
  title: '状态',
  type: 'text'
},
{
  field: 'status',
  title: '状态',
  type: 'selected',
  options: [
    {
      name: '待提交',
      value: '0'
    },
    {
      name: '待审批',
      value: '1'
    },
    {
      name: '审批通过',
      value: '2'
    },
    {
      name: '退回待修改',
      value: '3'
    }
  ],
  isHiden: true,
  searchable: true
}
]

/**
 * 休假申请详情set
 */
export const detailSetting = [{
  field: 'applyName',
  title: '申请名称',
  type: 'text'
},
{
  field: 'employeeName',
  title: '申请人',
  type: 'text',
  disableEdit: true
},
{
  field: 'employeeNo',
  title: '员工号',
  type: 'text',
  disableEdit: true
},
{
  field: 'orgId',
  title: '所属部门',
  type: 'org',
  disableEdit: true
},
{
  field: 'vacationStartDate',
  title: '开始日期',
  type: 'date-time'
},
{
  field: 'vacationEndDate',
  title: '结束日期',
  type: 'date-time'
},
{
  field: 'vacationType',
  title: '请假类型',
  type: 'selected',
  isParams: true, // 默认为false，当isParams 为true 时，下拉数据为参数类型，
  paramsId: 'VACATION'
},
{
  field: 'vacationDays',
  title: '请假天数',
  type: 'text'
},
{
  field: 'workHandover',
  title: '工作交接人',
  type: 'text'
}, {
  field: 'taskId',
  title: 'taskId',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
},
{
  field: 'action',
  title: 'action',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
},
{
  field: 'taskDefKey',
  title: 'taskDefKey',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
},
{
  field: 'procInstId',
  title: 'procInstId',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
}
]



/**
 * 休假申请新增的set
 */
export const addDetailSetting = [{
  field: 'applyName',
  title: '申请名称',
  type: 'text'
},
{
  field: 'employeeName',
  title: '申请人',
  type: 'text',
  disableEdit: true
},
{
  field: 'employeeNo',
  title: '员工号',
  type: 'text',
  disableEdit: true
},
{
  field: 'orgId',
  title: '所属部门',
  type: 'org',
  disableEdit: true
},
{
  field: 'vacationStartDate',
  title: '开始日期',
  type: 'date-time'
},
{
  field: 'vacationEndDate',
  title: '结束日期',
  type: 'date-time'
},
{
  field: 'vacationType',
  title: '请假类型',
  type: 'selected',
  isParams: true, // 默认为false，当isParams 为true 时，下拉数据为参数类型，
  paramsId: 'VACATION'
},
{
  field: 'vacationDays',
  title: '请假天数',
  type: 'text'
},
{
  field: 'workHandover',
  title: '工作交接人',
  type: 'text'
}, {
  field: 'taskId',
  title: 'taskId',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
},
{
  field: 'action',
  title: 'action',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
},
{
  field: 'taskDefKey',
  title: 'taskDefKey',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
},
{
  field: 'procInstId',
  title: 'procInstId',
  type: 'text',
  disableEdit: true,
  hideEdit: true,
  hideDetail: true
}
]
